package entry;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import utils.PrintElementsListJsonDeserializer;

import java.util.List;


@Data
public class Panel {

    // 页数下标
    private int index;

    // 页面大小 A4，A5...
    private String paperType;

    // 页面高度
    private double height;

    // 页面宽度
    private double width;

    // 页眉
    private double paperHeader;

    // 页脚
    private double paperFooter;

    // 打印元素
    @JSONField(deserializeUsing = PrintElementsListJsonDeserializer.class)
    private List<PrintElements> printElements;

    // 页脚页数打印左边距
    private double paperNumberLeft;

    // 页脚页数打印右边距
    private double paperNumberTop;

    // 首页页尾
    private double firstPaperFooter;

    // 偶数页页尾
    private double evenPaperFooter;

    // 奇数页页尾
    private double oddPaperFooter;

    // 尾页页尾
    private double lastPaperFooter;

    // 左偏移
    private double topOffset;

    // 字体
    private double fontFamily;

    // 顶部偏移
    private double leftOffset;

    // 纸张方向(仅自定义纸质有效) 1:纵向 0：横向
    private int orient;

    // 填充页脚页数
    private boolean paperNumberDisabled = true;
}
